import request from "@/utils/request";

/**
 * @description 登录
 * @param params
 * @returns {*}
 */
export function loginApi(params){
    return request({
        url:'/doLogin',
        method:'GET',
        params
    })
}

/**
 * @description 发送短信验证码
 * @param params
 * @returns {*}
 */
export function sendMessageCodeApi(params){
    return request({
        url:'/identifiy/saveMsgIdentifiy',
        method:'GET',
        params
    })
}
/**
 * @description 获取用户信息，登录后更新用
 * @param params
 * @returns {*}
 */
export function getUser(params){
    return request({
        url:'/getUserInfo',
        method:'GET',
        params
    })
}

/**
 * @description 获取微信登录二维码
 * @returns {*}
 */
export function getQRCode(){
    return request({
        url:'/create',
        method:'POST'
    })
}
/**
 * @description 修改密码
 * @param params
 * @returns {*}
 */
export function UpdatePassWordApi(params){
    return request({
        url:'/doUserUpdatePassWord',
        method:'POST',
        params
    })
}

/**
 * @description 投诉
 * @param params
 * @returns {*}
 */
export function opinionAddApi(params){
    return request({
        url:'/opinionAdd',
        method:'POST',
        params
    })
}
